.mi-carousel {
  position: relative;
  width: 100%;
  height: 90%; /* 根据实际需求调整 */
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 70px;
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  z-index: 10;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.carousel-button.prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.carousel-button.next {
  right: 0;
  border-radius: 4px 0 0 4px;
}

.carousel-button .iconfont {
  font-family: "iconfont" !important;
  font-size: 20px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dot.active {
  background-color: #fff;
  width: 20px;
  border-radius: 5px;
}
